package com.CST.controller.cb;

import com.CST.common.api.ResultObject;
import com.CST.entity.cb.EtlDepartment;
import com.CST.service.cb.IEtlDepartmentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/etlDepartment")
@Api(tags = "薪资和His数据")
public class EtlDepartmentController {
    
    @Autowired
    private IEtlDepartmentService etlDepartmentService;
    
    @PostMapping("/listEtlDepartmentFuzzy")
    @ApiOperation("条件查询etlDepartment")
    public ResultObject listEtlDepartmentFuzzy(@RequestBody EtlDepartment etlDepartment){
        return etlDepartmentService.listEtlDepartmentFuzzy(etlDepartment);
    }

    @PostMapping("/listEtlDepartment")
    @ApiOperation("条件查询etlDepartment(三香和浒关)")
    public ResultObject listEtlDepartment(@RequestBody EtlDepartment etlDepartment){
        return etlDepartmentService.listEtlDepartment(etlDepartment);
    }



}
